# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-tld
pkgver=0.12.6
pkgrel=1
pkgdesc="Extracts the top level domain (TLD) from the URL given"
url="https://pypi.python.org/pypi/tld"
arch="noarch"
license="MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later"
depends="python3 py3-six"
makedepends="py3-setuptools"
checkdepends="py3-factory-boy"
source="$pkgname-$pkgver.tar.gz::https://github.com/barseghyanartur/tld/archive/$pkgver.tar.gz"
options="!check" # TODO
builddir="$srcdir/tld-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# TODO: fix depndencies
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
ff10041178976af97c920a519ce3bb5a0a46f4299c24419db9a0502e89296e2bd66885dac5927e940c3abc22d6b390336916622cab771a57ba1c8f0960de2583  py3-tld-0.12.6.tar.gz
"
